<?php

/**
 * QuoteQuoteCategory form base class.
 *
 * @method QuoteQuoteCategory getObject() Returns the current form's model object
 *
 * @package    quotes
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseQuoteQuoteCategoryForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'quote_id'          => new sfWidgetFormInputHidden(),
      'quote_category_id' => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'quote_id'          => new sfValidatorPropelChoice(array('model' => 'Quote', 'column' => 'id', 'required' => false)),
      'quote_category_id' => new sfValidatorPropelChoice(array('model' => 'QuoteCategory', 'column' => 'id', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('quote_quote_category[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'QuoteQuoteCategory';
  }


}
